
Page({

    /**
     * 页面的初始数据
     */
    data: {
      list:[{
        course:"计算机组成原理",
        image:"/resources/courses/Tan.jpg",
        cid:0
      },{
        course:"离散数学",
        image:"/resources/courses/Ricky.jpg",
        cid:1
      },{
        course:"大学物理",
        image:"/resources/courses/Newton.jpeg",
        cid:2
      },{
        course:"C语言程序设计",
        image:"/resources/courses/Edggy.jpg",
        cid:3
      },{
        course:"电路理论",
        image:"/resources/courses/Kai.jpg",
        cid:4
      },{
        course:"汇编语言",
        image:"/resources/courses/Donald-Knuth.jpg",
        cid:5
      },{
        course:"计算机网络",
        image:"/resources/courses/Thompson, Ken.jpg",
        cid:6
      },{
        course:"数据结构",
        image:"/resources/courses/Dijkstra.jpg",
        cid:7
      },{
        course:"计算机组成原理",
        image:"/resources/courses/Tan.jpg",
        cid:8
      }] ,
      colorArr:["#FFFBCB","#FFCBCB","#C0EAEF","#C0EFC0"],
    },
    goto_Sub(e){
      let index=e.currentTarget.dataset.curindex;
      var that=this;
      wx.navigateTo({
        url: '/pages/sub_classification/sub_classification?cid='+that.data.list[index].cid,
      })
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
      
    },
  
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {
      
    }  
  })